﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ServerSide.Common.Types;

namespace ServerSide.Common
{
    /// <summary>
    /// Request Mesajları bu interfce'i kullanmak zorundalar. 
    /// </summary>
    public interface IRequest
    {
        object Process();
    }

    public interface IResult
    {
        string ErrorMessage { get; set; }
    }

    public class RequestMessage
    {
        public string UserName { get; set; }

        public string Password { get; set; }

        public string Ticket { get; set; }

        public string RequestTypeName { get; set; }
        public string SerializedRequest { get; set; }
    }

    public class ResponseMessage
    {
        public ResponseType ResponseType { get; set; }

        public string SerializedRequestResult { get; set; }

        public string Message { get; set; }
    }
}
